import request from '@/utils/request'

// 查询肉鸡销售列表
export function listChickenSalesInfo(query) {
  return request({
    url: '/btlfbreed/chickenSalesInfo/list',
    method: 'get',
    params: query
  })
}

// 查询肉鸡销售详细
export function getChickenSalesInfo(saleId) {
  return request({
    url: '/btlfbreed/chickenSalesInfo/' + saleId,
    method: 'get'
  })
}

// 新增肉鸡销售
export function addChickenSalesInfo(data) {
  return request({
    url: '/btlfbreed/chickenSalesInfo',
    method: 'post',
    data: data
  })
}

// 修改肉鸡销售
export function updateChickenSalesInfo(data) {
  return request({
    url: '/btlfbreed/chickenSalesInfo',
    method: 'put',
    data: data
  })
}

// 删除肉鸡销售
export function delChickenSalesInfo(saleId) {
  return request({
    url: '/btlfbreed/chickenSalesInfo/' + saleId,
    method: 'delete'
  })
}
// 初始化下拉框
export function getOptionCustomerselect() {
  return request({
    url: '/api/optionCustomerselect',
    method: 'get'
  })
}
// 初始化下拉框
export function getOptionCheckselect() {
  return request({
    url: '/api/optionCheckselect',
    method: 'get'
  })
}

